package com.ilink.ilinkcommon.service.oss;

import org.springframework.web.multipart.MultipartFile;

public interface MinioService {
    public String uploadSingleFile(String folder, String fileName, MultipartFile file);
    public String generatePresignedUrlWithExtension(String objectPath, String bucketName);
    public String generatePresignedUrl(String objectName, String bucketName);

    boolean uploadBucketFile(MultipartFile file, String bucketName, String objectName);
    boolean deleteBucketFile(String bucketName, String path, String fileName);

    boolean deleteFile(String bucketName, String objectName);
    boolean deleteDirectory(String bucketName, String directory);
    String getBucketFileUrl(String bucketName, String objectName);
    boolean downloadAndUpload(String bucketName, String fileUrl, String objectName);
}
